package com.mindskip.xzs.viewmodel;

import cn.hutool.core.util.IdUtil;
import com.mindskip.xzs.utility.ModelMapperSingle;
import org.modelmapper.ModelMapper;

/**
 * @author guolei
 */

public class BaseVM {
    protected static ModelMapper modelMapper = ModelMapperSingle.Instance();


    public static ModelMapper getModelMapper() {
        return modelMapper;
    }

    public static void setModelMapper(ModelMapper modelMapper) {
        BaseVM.modelMapper = modelMapper;
    }


    public static void main(String[] args) {
        System.out.println(IdUtil.getSnowflake(1).nextId());
    }
}

